
variable "rr" { type = string }
variable "zone" { type = string }
variable "alicloud_zone_id" { type = string }
variable "value" { type = string }
variable "type" { type = string }
variable "remark" { type = string }
variable "status" { type = string }

variable "ttl" {
  type = number
  default = 60
}

resource "alicloud_pvtz_zone_record" "main" {
  zone_id = var.alicloud_zone_id

  rr    = lower(var.rr)
  type  = var.type
  ttl   = var.ttl
  value = var.value
  remark = var.remark
  status = var.status
}

resource "deeproute_dns_record" "main" {
  rr    = var.rr
  zone  = var.zone
  type  = var.type
  ttl   = var.ttl
  value = var.value
}
